%%
%% This is file `mitsample.tex',
%% generated with the docstrip utility.
%
% The original source files were:
%
% ubcthesis.dtx  (with options: `mitsampletex')
%% 
%% This file was generated from the ubcthesis package.
%% --------------------------------------------------------------
%% 
%% Copyright (C) 2001
%% Michael McNeil Forbes
%% mforbes@alum.mit.edu
%% 
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.2
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%% 
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%% LaTeX Project Public License for more details.
%% 
%% This program consists of the files ubcthesis.dtx, ubcthesis.ins, and
%% the sample figures fig.eps and fig.fig.
%% 
%% This file may be modified and used as a base for your thesis without
%% including the licence agreement as long as the content (i.e. textual
%% body) of the file is completely rewritten. You must, however, change
%% the name of the file.
%% 
%% This file may only be distributed together with a copy of this
%% program. You may, however, distribute this program without generated
%% files such as this one.
%% 

% This Sample thesis requires \LaTeX2e
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesFile{mitsample.tex}[2008/05/19 v1.53 ^^J
 Massachusetts Institute of Technology Sample Thesis]

\documentclass[msc,10pt,oneside]{mitthesis}
%
% To compile issue the following commands:
% latex mitsample
% bibtex mitsample
% latex mitsample
% latex mitsample
% latex mitsample
%
% To view use xdvi (on unix systems):
% xdvi mitsample.dvi
%
% To make a postscript file, use dvips:
% dvips -o mitsample.ps mitsample.dvi
%
% To view the postscript file, use ghostview or gv (on unix systems):
% gv mitsample.ps
%
%************************************************
% Optional packages.
%
% The use of these packages is optional: they are standard now and
% should be installed on your system, but if they are not, you might
% have to comment out the appropriate lines to get this file to
% compile.
%
%******** natbib ********************************
% This is a very nice package for bibliographies.  It includes options
% for sorting and compressing bibliographic entries.
\usepackage[numbers,sort&compress]{natbib}

%******** graphics and graphicx ******************************
% This allows you to include encapsulated postscript files.  If you
% don't have this, comment the \includegraphics{} line following the
% comment "%includegraphics" later in this file.
\usepackage{graphicx}

%******** lscape ******************************
% This allows you to include landscape layout pages by using the
% |landscape| environment. Note that this output might only be valid
% after converting to a postscript or pdf file.
\usepackage{lscape}

%******** psfrag ******************************
% This allows you to replace text in postscript pictures with formated
% latex text.  This allows you to use math in graph labels
% etc. Uncomment the psfrag lines following the "%psfrag" comment
% later in this file if you don't have this package.  The replacements
% will only be visible in the final postscript file: they will be
% listed in the .dvi file but not performed.
\usepackage{psfrag}

%******** afterpage ***************************
% This package allows you to issue commands at the end of the current
% page.  A good use for this is to use the command
% \afterpage{\clearpage} right after a figure.  This will cause the
% figure to be inserted on the page following the current one (or on
% the current page if it will fit) but will not break the page in the
% middle.
\usepackage{afterpage}

%******** hyperref *****************************
% This adds hyperlinks to your document: with the right viewers (later
% versions of xdvi, acrobat with pdftex, latex2html etc.) this will
% make your equation, figure, citation references etc. hyperlinks so
% that you can click on them.  Also, your table of contents will be
% able to take you to the appropriate sections.  In the viewers that
% support this, the links often appear with an underscore.  This
% underscore will not appear in printed versions.
%
% Note: if you do not use the hypertex option, then the dvips driver
% may be loaded by default.  This will cause the entries in the list
% of figures and list of tables to be on a single line because dvips
% does not deal with hyperlinks on broken lines properly.
%
% Also, the hyperref package should be loaded last as it modified the
% commands in many other pagckages.
\usepackage[hypertex]{hyperref}

% If you would like to compile this sample thesis without the
% hyperref package, then you will need to comment out the previous
% \usepackage command and uncomment the following command which will
% put the URL's in a typewriter font but not link them.
%\newcommand\href[2]{\texttt{#2}}

% These commands are optional.  The defaults are shown.
\institution{The University Of British Columbia}
\institutionaddress{Vancouver, Canada}
\program{Physics}

% You can issue as many of these as you have...
\previousdegree{B.Sc., The University of British Columbia, 1999}
\previousdegree{M.Sc., The University of British Columbia, 2001}

% You can override the option setting here.
% \degreetitle{Jack of All Trades}

% These commands are required.
\title{A Sample Thesis}
\subtitle{With a Subtitle}
\author{Michael M$^{\rm c}$Neil Forbes}
\copyrightyear{2000}
\submitdate{\today}

% These commands are required by MIT.
\advisor{Frank Wilczek}
\advisortitle{Herman Feshbach Professor of Physics}
\chairman{Thomas Greytak}{Professor and Associate Department Head for
  Education}
% One might want to override the format of the section and chapter
% numbers.  This shows you how to do it.  Note that
\renewcommand\thepart         {\Roman{part}}
\renewcommand\thechapter      {\arabic{chapter}}
\renewcommand\thesection      {\thechapter.\arabic{section}}
\renewcommand\thesubsection   {\thesection.\arabic{subsection}}
\renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}}
\renewcommand\theparagraph    {\thesubsubsection.\arabic{paragraph}}
\renewcommand\thesubparagraph {\theparagraph.\arabic{subparagraph}}

\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{2}

% Here is the start of the document.
\begin{document}

% Unlike the UBC thesis, page numbering for MIT theses should start
% at 1 and continue.  Thus, there is no \frontmatter command issued
% here as there was for the UBC thesis.

\maketitle
\authorizationform
\begin{abstract}
  The \texttt{genthesis.cls} \LaTeX{} class file and accompanying
  documents, such as this sample thesis, are distributed in the hope
  that it will be useful but without any warranty (without even the
  implied warranty of fitness for a particular purpose).  For a
  description of this file's purpose, and instructions on its use, see
  below.

  These files are distributed under the GPL which should be included
  here in the future.  Please let the author know of any changes or
  improvements that should be made.

  Michael Forbes.
  mforbes@alum.mit.edu
\end{abstract}

\tableofcontents
\listoftables
\listoffigures
% Any other lists should come here, i.e.
% Abbreviation schemes, definitions, lists of formulae, list of
% schemes, etc.

\chapter{Preface}
These papers have been published earlier\ldots.

\chapter{Acknowledgements}
Thank you mother here.

% Force a new page.
\newpage

% Any other unusual sections should come here between the
% acknowledgements and the main body.

% Suppress the running headers for this page only.
\thispagestyle{plain}
\chapter*{Disclaimer} % Unnumbered
The \texttt{mitthesis} \LaTeX{} class and the accompanying sample files
are \emph{unofficial} and are not supported by the Massachusetts
Institute of Technology.  While I have attempted to make the style
file and sample files conform to all of the requirements set forth by
the library, you should always consult one of the library staff
members for assistance with problems \emph{before} starting final
draft.  You should be able to find the thesis requirements at one of
the following sites:
\begin{table}[h]
  \begin{center}
    \begin{tabular}{|l|}
      \hline
      \href{http://libraries.mit.edu/archives/thesis-specs/}
      {\texttt{http://libraries.mit.edu/archives/thesis-specs/}}\\
      \href{http://libraries.mit.edu/archives/index.html}
      {\texttt{http://libraries.mit.edu/archives/index.html}}\\
      \hline
    \end{tabular}
  \end{center}
  \caption{\label{tab:ubcurls}
    Potential sources of information regarding thesis preparation at
    \protect\href{http://www.mit.edu/}{MIT}.}
\end{table}

% Force a new page.
\newpage

% Suppress the running headers for this page only.
\thispagestyle{plain}

% Here we provide a short optional argument to \chapter[]{}.  This
% optional argument will appear in the table of contents.  For long
% titles, one should use this to give a single-line entry to the
% table of contents.
\chapter[Poem]{A Japanese Introduction}

% Here is a quote:
\begin{quote}
  % It is centered
  \begin{center}
    This is a small poem,\\
    a little poem, a Haiku,\\
    to show you how to.\\
    ---Michael Forbes.
  \end{center}
\end{quote}
This small poem shows several features:
\begin{itemize}
\item The \verb|\newpage| command has been used to force a page break.
\item The pagestyle has been set to suppress the headers using the
  command \verb|\thispagestyle{plain}|.  Note that using
  \verb|\pagestyle{plain}| would have affected all of the subsequent
  pages.
\item The \verb|\chapter[Poem]{A Japanese Introduction}| command has
  been used with an optional argument to generate a title and to list
  this ``chapter'' in the table of contents as ``Poem''.  If one did
  not desire to have an entry in the table of contents, then one would
  just use the starred command \verb|\chapter*{}|.  The use of an
  optional argument is useful for long chapter and section titles that
  take up too much space in the table of contents.
\item All of this has been done \emph{before} the \verb|\mainmatter|
  command has been issued to delay normal Arabic numbering.  Thus,
  this poem will be numbered with lowercase Roman numerals as part of
  the front matter.
\end{itemize}

% Parts are the largest units
\part{Thesis}

% Chapters are the next main unit.
\chapter{This is a Chapter}

% Sections are a sub-unit
\section{A Section}
Here is a section with some text.  Equations look like this $y=x$.

This is an example of a second paragraph in a section so you can
see how much it is indented by.

% Subsections follow
\subsection{This is a Subsection}
Here is an example of a citation: \cite{Forbes:2006ba}.  The actual
form of the citation is governed by the bibliographystyle.  These
citations are maintained in a BIBTeX file \texttt{sample.bib}.  You
could type these directly into the file.  For an example of the format
to use look at the file \texttt{mitsample.bbl} after you compile this
file.

This is an example of a second paragraph in a subsection so you can
see how much it is indented by.

\subsubsection{This is a Subsubsection}
Here are some more citations \cite{LL3:1977,Peccei:1989,Turner:1999}.
If you use the \texttt{natbib} package with the \verb+sort&compress+
option, then the following citation will look the same as the first
citation in this section: \cite{Turner:1999,Peccei:1989,LL3:1977}.

This is an example of a second paragraph in a subsubsection so you can
see how much it is indented by.

\paragraph{This is a Paragraph}
Paragraphs and subparagraphs are the smallest units of text.  There is
no subsubsubsection etc.

\subparagraph{This is a Subparagraph}
This is the last level of organisation.  If you need more than this,
you should consider reorganizing your work\dots

\begin{equation}
  \mathrm{f}(x)=\int_{-\infty}^{\int_{-\infty}^x
    e^{-\frac{y^2}{2}}\mathrm{d}{y}}e^{-z^2}\mathrm{d}z
\end{equation}

In order to show you what a separate page would look like (i.e. without
a chapter heading) I must type some more text.  Thus I will babble a
bit and keep babbling for at least one more page\ldots  What you
should notice is that the chapter titles appear substantially lower
than the continuing text. Babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble.

Babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble babble babble babble babble babble babble
babble babble babble babble.

\begin{table}[t]                 %optional [t, b or h];
  \begin{tabular}{|r||r@{.}l|}
    \hline
    Phoenix & \$960&35\\
    \hline
    Calgary & \$250&00\\
    \hline
  \end{tabular}
  \caption{
    \label{tab:Table1}
    Here is the caption for this wonderful table.Text of Caption}
\end{table}

\chapter[Another Chapter\ldots]{Another Chapter with a Very Long
  Chapter-name that will Probably Cause Problems}
This chapter name is very long and does not display properly in the
running headers or in the table of contents.  To deal with this, we
provide a shorter version of the title as the optional argument to the
\verb|\chapter[]{}| command.

\section{Another Section}
Another bunch of text to demonstrate what this file does.
You might want a list for example:
\begin{itemize}
\item An item in a list.
\item Another item in a list.
\end{itemize}

\section*{An Unnumbered Section That is Not Included in the Table of Contents}
Here is an example of a figure environment.
\begin{figure}[ht]
  \begin{center}
%psfrag: comment the following line if not using the psfrag package
    \psfrag{pie makes me happy!}{$\pi$ makes me happy!}
%includegraphics: comment the following if not using the graphicx package
    \includegraphics[width=0.4\textwidth]{fig.eps}
    \caption[Happy Face: figure example.]{\label{fig:happy} This is a
      figure of a happy face with a \texttt{psfrag} replacement.  The
      original figure (drawn in xfig and exported to a .eps file) has
      the text ``pie makes me happy!''.  The \texttt{psfrag} package
      replaces this with ``$\pi$ makes me happy!''.  Note that we have
      used the optional argument for the caption command so that only
      a short version of this caption occurs in the list of figures.}
  \end{center}
\end{figure}
\afterpage{\clearpage} Perhaps I should say that the example of a
figure can be seen in Figure~\ref{fig:happy}.  Figure placement can be
tricky with \LaTeX\ because figures and tables are treated as
``floats'': text can flow around them, but if there is not enough
space, they will appear later.  To prevent figures from going too far,
the \verb|\afterpage{\clearpage}| command can be used.  This makes
sure that the figure appears on the following page.  (Without the
\verb|\afterpage{}| command, the page would be broken too early.  For
more detailed control, consider using the \texttt{here} package.

Figures can make a document more enjoyable as demonstrated by
Figure~\ref{fig:happy}.
\subsection*{An Unnumbered Subsection}
Note that if you use subsections or further divisions under an
unnumbered section, then you should make them unnumbered as well
otherwise you will end up with zeros in the section numbering.

\begin{landscape}
\chapter{Landscape Mode}
The landscape mode allows you to rotate a page through 90 degrees.  Note
that this might only work after you convert the \texttt{dvi} file to a
postscript (\texttt{ps}) or \texttt{pdf} file using \texttt{dvips} or
\texttt{dvipdf} etc.
\end{landscape}

% This file is setup to use a bibtex file sample.bib and uses the
% plain style.  Note, the bibliography could come after the appendices.
\bibliographystyle{plain}
\bibliography{sample}

% Use this to reset the appendix counter.
\appendix
\chapter{First Appendix}
Here you can have your appendices.

% Indices come here.

\end{document}
\endinput
%%
%% End of file `mitsample.tex'.
